﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DJY.Domain.Entity.WorkFlow
{
    /// <summary>
    /// 流程消息 实体
    /// </summary>
    public class WFMessageEntity
    {
        /// <summary>
        /// 消息ID
        /// </summary>
        [Key]
		[StringLength(36)]
    	public string Id
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 流程实例ID
        /// </summary>
		[StringLength(36)]
    	public string InstanceId
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 实例节点（当前）
        /// </summary>
		[StringLength(36)]
    	public string NodeId
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 通知消息人
        /// </summary>
		[StringLength(36)]
    	public string OperateMan
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 消息
        /// </summary>
		[StringLength(200)]
    	public string Msg
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 最后编辑时间
        /// </summary>
    	public DateTime? F_LastUpdateTime
    	{
    		get;
    		set;
    	}

        /// <summary>
        /// 状态，0新增，1已处理，2无效
        /// </summary>
    	public int State
        {
            get;
            set;
        }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(100)]
    	public string Remark
        {
            get;
            set;
        }

        /// <summary>
        /// 状态，0一般，1重要，2紧急
        /// </summary>
    	public int Weight
        {
            get;
            set;
        }

    }
}
